package com.soft.entity;


//购物车详情
public class TrolleyInfo {

    private int id;//编号
    private int trolleyId;//购物车编号
    private int goodsId;//商品编号
    private double unitPrice;//商品单价
    private String goodsName;//商品名称
    private int count;//数量
    private double price;//金额

    public TrolleyInfo() {}

    public void setId(String id) {
        this.id = Integer.parseInt(id);
    }

    public int getId() {
        return id;
    }

    public void setTrolleyId(String trolleyId) {
        this.trolleyId = Integer.parseInt(trolleyId);
    }

    public int getTrolleyId() {
        return trolleyId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = Integer.parseInt(goodsId);
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = Double.parseDouble(unitPrice);
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setCount(String count) {
        this.count = Integer.parseInt(count);
    }

    public int getCount() {
        return count;
    }

    public void setPrice(String price) {
        this.price = Double.parseDouble(price);
    }

    public double getPrice() {
        return price;
    }
}
